
public class Tree : CObject {
    int type;
    public static Image imgTree;
    public static Image imgTree2;

    public Tree(int bx, int by, int type) {
        this.bx = bx;
        this.by = by;
        this.type = type;
        this.x = this.bx * 24 + 12;
        this.y = this.by * 24 + 24;
        if (type == 9) {
            this.y += 1;
        }
    }

    public void paint(mGraphics g) {
        if (type == 9) {
             g.drawImage(imgTree2, x, y, 33);
            return;
        }
//        g.drawRegion(imgTree, 0, type * 32, 24, 32, 0, x, y, 33);
    }

    public void update() {
    }
}
